package com.example.cicddemo.service;

import com.example.cicddemo.dao.TestDAO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestService {
    Logger logger = LoggerFactory.getLogger(getClass());
    @Autowired
    TestDAO testDAO;

    public void test(){
        int k;
        if(1==1) {
            logger.info("测试一段代码");
        }
        String a = "1"+"a"+"bb";
        int j = Integer.parseInt("1");
        int result = testDAO.add();
        logger.info("调用dao执行结果:{}",result);
    }
}
